package cn.zzdt4j.config.service.biz;

import cn.zzdt4j.config.model.ConfigAllInfo;

/**
 * The interface Config service.
 *
 * @author by <a href="mailto:ligang941012@gmail.com">gang.Li</a>
 * @since 2023 /11/6 20:38
 */
public interface ConfigService {
    /**
     * Insert or update.
     *
     * @param identify       the identify
     * @param isChangeNotice the is change notice
     * @param configAllInfo  the config all info
     */
    void insertOrUpdate(String identify, boolean isChangeNotice, ConfigAllInfo configAllInfo);

    /**
     * Find config recent info config all info.
     *
     * @param params the params
     * @return the config all info
     */
    ConfigAllInfo findConfigRecentInfo(String... params);

    /**
     * Find config all info config all info.
     *
     * @param tpId     the tp id
     * @param itemId   the item id
     * @param tenantId the tenant id
     * @return the config all info
     */
    ConfigAllInfo findConfigAllInfo(String tpId, String itemId, String tenantId);
}
